<template>
	<div class="header">
		<div class="header-left">
			<div class="iconfont back-icon">&#xe604;</div>
		</div>
		<div class="header-input">
			<div class="iconfont">&#xe60b;</div>
		</div>
		<router-link to="/City">
			<div class="header-right">
				<div class="iconfont arrow-icon">{{this.city}}&#xe64a;</div>
			</div>
		</router-link>
	</div>
</template>

<script>
import {mapState} from 'vuex'
export default{
  name:'HomeHeader',
  computed:{
  	...mapState(['city'])
  }
}
</script>

<style lang="stylus" scoped>
.header
  line-height:.86rem
  background:#00bcd4
  color:#fff
  display:flex
  .header-left
    float:left
    width:.64rem
    .back-icon
      text-align:center
      font-size:.4rem
  .header-input
    flex:1
    height:.64rem
    line-height:.64rem
    margin-top:.12rem
    margin-bottom:.12rem
    margin-left:.2rem
    background:#fff
    color:#ccc
    border-radius:.1rem
  .header-right
    float:right
    min-width:1.04rem
    padding:0 .1rem
    text-align:center
    color:#fff
    .arrow-icon
      font-size:.24rem
</style>